package function

func InSliceStr(member string, list []string) bool {
	for _, element := range list {
		if element == member {
			return true
		}
	}
	return false
}

func ArraysToStr(arr []string, format string) string {
	var s = ""
	for i := 0; i < len(arr); i++ {
		s += arr[i]
		if format != "" {
			s += format
		} else {
			s += ","
		}
	}
	return s
}
